Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Bump minimum needed R version to 3.6 (after R 4.3 release) #985

Closed
wants to merge 31 commits into from
Closed

WIP: Bump minimum needed R version to 3.6 (after R 4.3 release) #985

wants to merge 31 commits into from

Conversation

IndrajeetPatil
Copy link
Collaborator

@IndrajeetPatil IndrajeetPatil commented Aug 23, 2022

Since R versions >= 3.4 are supported by {styler}.

To be considered after R 4.3 release.

TODO:

  • Bump needed R version
  • Remove logic related to old parsers
  • Update NEWS
  • Turn on oldrel-4 on R CMD Check GHA once R 4.3 is out

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2022

Codecov Report

Merging #985 (cf45330) into main (38e4b1f) will increase coverage by 1.01%.
The diff coverage is 40.00%.

❗ Current head cf45330 differs from pull request most recent head a94384e. Consider uploading reports for the commit a94384e to get more accurate results

@@            Coverage Diff             @@
##             main     #985      +/-   ##
==========================================
+ Coverage   91.08%   92.10%   +1.01%     
==========================================
  Files          46       46              
  Lines        2691     2646      -45     
==========================================
- Hits         2451     2437      -14     
+ Misses        240      209      -31     
Impacted Files Coverage Δ
R/environments.R 0.00% <0.00%> (-100.00%) ⬇️
R/nest.R 100.00% <ø> (ø)
R/parse.R 87.80% <ø> (-0.15%) ⬇️
R/style-guides.R 100.00% <ø> (+0.56%) ⬆️
R/utils-navigate-nest.R 81.48% <ø> (ø)
R/relevel.R 96.87% <100.00%> (+47.57%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lorenzwalthert
Copy link
Collaborator

Thanks @IndrajeetPatil. Actually we only support the current (4.2), devel and 4 previous versions of R, i.e. 4.1, 4.0, 3.6, 3.5: https://www.tidyverse.org/blog/2019/04/r-version-support/. So I guess instead, the DESCRIPTION should be adapted and if we can simplify parser versions or other things, we should do that I think.

@github-actions

This comment was marked as outdated.

@IndrajeetPatil
Copy link
Collaborator Author

This blog entry mentions that-

our general policy is to support the current version, the devel version, and four previous versions of R.

So I'd assume that the minimum needed R version is now R >= 3.5 across {tidyverse} packages, but that doesn't seem to be the case.

For example:

  • For meta-package {tidyverse}, it is R >= 3.3:

https://github.com/tidyverse/tidyverse/blob/3be82832a4982d6d10e25e375cedeb8c3161be35/DESCRIPTION#L17-L18

  • For {dplyr}, it is R >= 3.4:

https://github.com/tidyverse/dplyr/blob/73ffdbf29bdb5763b2788c7b41c03a4813c929a8/DESCRIPTION#L30-L31

  • For {lubridate}, it is R >= 3.2:

https://github.com/tidyverse/lubridate/blob/0bb49b21c88736240219dc67e7ed0eb3df15d9b1/DESCRIPTION#L32-L34

etc.

But, if you say, you want to support only R >= 3.5, then yes some of the parser-related logic can be simplified.

@IndrajeetPatil IndrajeetPatil changed the title Also test with parser version 1 Bump minimum needed R version to 3.5 Aug 23, 2022
@github-actions

This comment was marked as outdated.

@IndrajeetPatil IndrajeetPatil marked this pull request as draft August 23, 2022 09:03
@IndrajeetPatil IndrajeetPatil changed the title Bump minimum needed R version to 3.5 Bump minimum needed R version to 3.6 Aug 23, 2022
@IndrajeetPatil
Copy link
Collaborator Author

@lorenzwalthert Let's keep this on hold until R 4.3 release.

Then we can bump the minimum needed R version to 3.6 and get rid of some logic related to parse version 1.

I have created a new PR #986 where I bump the minimum needed R version to 3.5.

@lorenzwalthert
Copy link
Collaborator

Ok, thanks for the analysis. Also, there are some workarounds that can be dropped depending on the R version, mentioned in #581.

@github-actions

This comment was marked as outdated.

@IndrajeetPatil IndrajeetPatil changed the title Bump minimum needed R version to 3.6 WIP: Bump minimum needed R version to 3.6 Aug 23, 2022
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

R/parse.R Outdated Show resolved Hide resolved
@IndrajeetPatil IndrajeetPatil changed the title WIP: Bump minimum needed R version to 3.6 WIP: Bump minimum needed R version to 3.6 (after R 4.3 release) Sep 12, 2022
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 5035068 is merged into main:

  •   :ballot_box_with_check:cache_applying: 38.2ms -> 38.5ms [-2.43%, +3.81%]
  •   :ballot_box_with_check:cache_recording: 1.11s -> 1.09s [-3.24%, +0.65%]
  •   :ballot_box_with_check:without_cache: 2.76s -> 2.78s [-0.91%, +2.4%]

Further explanation regarding interpretation and methodology can be found in the documentation.

@github-actions

This comment was marked as outdated.

@github-actions
Copy link
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 33fdf56 is merged into main:

  •   :rocket:cache_applying: 28.4ms -> 25.6ms [-12.17%, -7.77%]
  •   :ballot_box_with_check:cache_recording: 808ms -> 808ms [-0.49%, +0.46%]
  •   :ballot_box_with_check:without_cache: 2.01s -> 2s [-0.64%, +0.02%]

Further explanation regarding interpretation and methodology can be found in the documentation.

@IndrajeetPatil
Copy link
Collaborator Author

The main has deviated far away from this PR, and so I would close this for now.

I will reopen it when R 4.3 release date is announced.

@IndrajeetPatil IndrajeetPatil deleted the test_old_supported_version branch December 30, 2022 20:47
IndrajeetPatil added a commit that referenced this pull request Apr 1, 2023
R 4.3 is scheduled for release on April 21.

Follow-up on #985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants